
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>Distillery(基础) · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="stream-data.html" />
    
    
    <link rel="prev" href="bypass.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        <li class="header">第一部分：基础</li>
        
        
    
        <li class="chapter " data-level="1.1" data-path="../../">
            
                <a href="../../">
            
                    
                    Introduction
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../basics/basics.html">
            
                <a href="../basics/basics.html">
            
                    
                    基础
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../basics/collections.html">
            
                <a href="../basics/collections.html">
            
                    
                    集合
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../basics/enum.html">
            
                <a href="../basics/enum.html">
            
                    
                    Enum 模块
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../basics/pattern-matching.html">
            
                <a href="../basics/pattern-matching.html">
            
                    
                    模式匹配
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../basics/control-structures.html">
            
                <a href="../basics/control-structures.html">
            
                    
                    控制语句
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../basics/functions.html">
            
                <a href="../basics/functions.html">
            
                    
                    函数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="../basics/pipe-operator.html">
            
                <a href="../basics/pipe-operator.html">
            
                    
                    管道操作符
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="../basics/modules.html">
            
                <a href="../basics/modules.html">
            
                    
                    模块(Module)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="../basics/mix.html">
            
                <a href="../basics/mix.html">
            
                    
                    Mix
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11" data-path="../basics/sigils.html">
            
                <a href="../basics/sigils.html">
            
                    
                    魔符(Sigil)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12" data-path="../basics/documentation.html">
            
                <a href="../basics/documentation.html">
            
                    
                    文档模块
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13" data-path="../basics/testing.html">
            
                <a href="../basics/testing.html">
            
                    
                    测试
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14" data-path="../basics/comprehensions.html">
            
                <a href="../basics/comprehensions.html">
            
                    
                    推导
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15" data-path="../basics/strings.html">
            
                <a href="../basics/strings.html">
            
                    
                    字符串
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.16" data-path="../basics/date-time.html">
            
                <a href="../basics/date-time.html">
            
                    
                    日期和时间
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17" data-path="../basics/mix-tasks.html">
            
                <a href="../basics/mix-tasks.html">
            
                    
                    自定义Mix任务
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.18" data-path="../basics/iex-helpers.html">
            
                <a href="../basics/iex-helpers.html">
            
                    
                    IEx辅助函数
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">第二部分：高级</li>
        
        
    
        <li class="chapter " data-level="2.1" data-path="../advanced/erlang.html">
            
                <a href="../advanced/erlang.html">
            
                    
                    和Erlang互操作
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="../advanced/error-handling.html">
            
                <a href="../advanced/error-handling.html">
            
                    
                    错误处理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3" data-path="../advanced/escripts.html">
            
                <a href="../advanced/escripts.html">
            
                    
                    可执行文件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4" data-path="../advanced/concurrency.html">
            
                <a href="../advanced/concurrency.html">
            
                    
                    并发
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.5" data-path="../advanced/otp-concurrency.html">
            
                <a href="../advanced/otp-concurrency.html">
            
                    
                    OTP并发
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.6" data-path="../advanced/otp-supervisors.html">
            
                <a href="../advanced/otp-supervisors.html">
            
                    
                    OTP Supervisors
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.7" data-path="../advanced/otp-distribution.html">
            
                <a href="../advanced/otp-distribution.html">
            
                    
                    OTP 分布式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.8" data-path="../advanced/metaprogramming.html">
            
                <a href="../advanced/metaprogramming.html">
            
                    
                    元编程
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.9" data-path="../advanced/umbrella-projects.html">
            
                <a href="../advanced/umbrella-projects.html">
            
                    
                    Umbrella Projects
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10" data-path="../advanced/typespec.html">
            
                <a href="../advanced/typespec.html">
            
                    
                    Specifications and types
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.11" data-path="../advanced/behaviours.html">
            
                <a href="../advanced/behaviours.html">
            
                    
                    行为
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.12" data-path="../advanced/gen-stage.html">
            
                <a href="../advanced/gen-stage.html">
            
                    
                    GenStage
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.13" data-path="../advanced/protocols.html">
            
                <a href="../advanced/protocols.html">
            
                    
                    协议
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.14" data-path="../advanced/nerves.html">
            
                <a href="../advanced/nerves.html">
            
                    
                    Nerves
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">第三部分：ECTO</li>
        
        
    
        <li class="chapter " data-level="3.1" data-path="../ecto/basics.html">
            
                <a href="../ecto/basics.html">
            
                    
                    Basics
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.2" data-path="../ecto/changesets.html">
            
                <a href="../ecto/changesets.html">
            
                    
                    Changesets
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.3" data-path="../ecto/associations.html">
            
                <a href="../ecto/associations.html">
            
                    
                    关联关系
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.4" data-path="../ecto/querying.html">
            
                <a href="../ecto/querying.html">
            
                    
                    查询
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">第四部分：专题</li>
        
        
    
        <li class="chapter " data-level="4.1" data-path="../specifics/plug.html">
            
                <a href="../specifics/plug.html">
            
                    
                    Plug
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2" data-path="../specifics/eex.html">
            
                <a href="../specifics/eex.html">
            
                    
                    嵌入的 Elixir(EEx)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.3" data-path="../specifics/ets.html">
            
                <a href="../specifics/ets.html">
            
                    
                    Erlang 项式存储(ETS)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.4" data-path="../specifics/mnesia.html">
            
                <a href="../specifics/mnesia.html">
            
                    
                    Mnesia 数据库
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.5" data-path="../specifics/debugging.html">
            
                <a href="../specifics/debugging.html">
            
                    
                    调试
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">第五部分：程序库</li>
        
        
    
        <li class="chapter " data-level="5.1" data-path="guardian.html">
            
                <a href="guardian.html">
            
                    
                    Guardian(基础)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.2" data-path="poolboy.html">
            
                <a href="poolboy.html">
            
                    
                    Poolboy
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.3" data-path="benchee.html">
            
                <a href="benchee.html">
            
                    
                    Benchee
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.4" data-path="bypass.html">
            
                <a href="bypass.html">
            
                    
                    Bypass
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="5.5" data-path="distillery.html">
            
                <a href="distillery.html">
            
                    
                    Distillery(基础)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.6" data-path="stream-data.html">
            
                <a href="stream-data.html">
            
                    
                    StreamData
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../.." >Distillery(基础)</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <p>Distillery &#x662F;&#x7EAF; Elixir &#x7F16;&#x5199;&#x7684;&#x53D1;&#x5E03;&#x7BA1;&#x7406;&#x5DE5;&#x5177;&#x3002;&#x5B83;&#x53EF;&#x4EE5;&#x8BA9;&#x4F60;&#x5728;&#x6781;&#x5C11;&#xFF0C;&#x751A;&#x81F3;&#x4E0D;&#x9700;&#x8981;&#x914D;&#x7F6E;&#x7684;&#x60C5;&#x51B5;&#x4E0B;&#x751F;&#x6210;&#x53D1;&#x5E03;&#x5305;&#xFF0C;&#x5E76;&#x90E8;&#x7F72;&#x5230;&#x5176;&#x5B83;&#x73AF;&#x5883;&#x3002;</p>
<h2 id="&#x4EC0;&#x4E48;&#x662F;&#x53D1;&#x5E03;&#x5305;&#xFF1F;">&#x4EC0;&#x4E48;&#x662F;&#x53D1;&#x5E03;&#x5305;&#xFF1F;</h2>
<p>&#x4E00;&#x4E2A;&#x53D1;&#x5E03;&#x5305;&#x5C31;&#x662F;&#x5305;&#x542B;&#x4E86; Erlang/Elixir &#x7F16;&#x8BD1;&#x7801;&#x7684;&#x4EE3;&#x7801;&#x5305;&#xFF08;&#x4E5F;&#x5C31;&#x662F; <a href="https://en.wikipedia.org/wiki/BEAM_(Erlang_virtual_machine" target="_blank">BEAM</a>) <a href="https://en.wikipedia.org/wiki/Bytecode" target="_blank">&#x5B57;&#x8282;&#x7801;</a>&#xFF09;&#x3002;&#x5B83;&#x91CC;&#x9762;&#x8FD8;&#x63D0;&#x4F9B;&#x8FD0;&#x884C;&#x7A0B;&#x5E8F;&#x5FC5;&#x987B;&#x7684;&#x811A;&#x672C;&#x3002;</p>
<blockquote>
<p>&#x5F53;&#x4F60;&#x7F16;&#x5199;&#x4E86;&#x4E00;&#x4E2A;&#x6216;&#x591A;&#x4E2A;&#x5E94;&#x7528;&#x540E;&#xFF0C;&#x4F60;&#x6216;&#x8BB8;&#x60F3;&#x521B;&#x9020;&#x4E00;&#x4E2A;&#x5305;&#x542B;&#x4E86;&#x8FD9;&#x4E9B;&#x5E94;&#x7528;&#x548C; Erlang/OTP &#x5E94;&#x7528;&#x5B50;&#x96C6;&#x7684;&#x5B8C;&#x6574;&#x7CFB;&#x7EDF;&#x3002;&#x8FD9;&#x4E2A;&#x5C31;&#x662F;&#x4E00;&#x4E2A;&#x53D1;&#x5E03;&#x5305;&#x3002;&#x2014;&#x2014; <a href="http://erlang.org/doc/design_principles/release_structure.html" target="_blank">Erlang &#x6587;&#x6863;</a></p>
<p>&#x53D1;&#x5E03;&#x5305;&#x7B80;&#x5316;&#x4E86;&#x5E94;&#x7528;&#x6D4B;&#x90E8;&#x7F72;&#xFF1A;&#x5B83;&#x4EEC;&#x662F;&#x81EA;&#x5305;&#x542B;&#x7684;&#xFF0C;&#x5E76;&#x63D0;&#x4F9B;&#x4E86;&#x542F;&#x52A8;&#x6240;&#x9700;&#x7684;&#x6240;&#x6709;&#x4E1C;&#x897F;&#xFF1B;&#x8FD8;&#x53EF;&#x4EE5;&#x901A;&#x8FC7;&#x5185;&#x7F6E;&#x547D;&#x540D;&#x884C;&#x811A;&#x672C;&#x6765;&#x8F7B;&#x677E;&#x5730;&#x7BA1;&#x7406;&#x5B83;&#x4EEC;&#xFF0C;&#x5305;&#x62EC;&#x6253;&#x5F00;&#x8FDC;&#x7A0B;&#x547D;&#x4EE4;&#x884C;&#xFF0C;&#x542F;&#x52A8;/&#x505C;&#x6B62;/&#x91CD;&#x542F;&#x5E94;&#x7528;&#xFF0C;&#x540E;&#x53F0;&#x542F;&#x52A8;&#xFF0C;&#x53D1;&#x9001;&#x8FDC;&#x7A0B;&#x547D;&#x4EE4;&#x7B49;&#x3002;&#x53E6;&#x5916;&#xFF0C;&#x5B83;&#x4EEC;&#x8FD8;&#x662F;&#x53EF;&#x5F52;&#x6863;&#x4FDD;&#x5B58;&#x7684;&#x6210;&#x54C1;&#xFF0C;&#x610F;&#x5473;&#x7740;&#x4F60;&#x53EF;&#x4EE5;&#x5728;&#x672A;&#x6765;&#x4EFB;&#x610F;&#x65F6;&#x523B;&#xFF0C;&#x901A;&#x8FC7;&#x8FD9;&#x4E2A;&#x538B;&#x7F29;&#x5305;&#x6062;&#x590D;&#x5230;&#x65E7;&#x7248;&#x672C;&#x7684;&#x7CFB;&#x7EDF;&#xFF08;&#x9664;&#x975E;&#x548C;&#x5E95;&#x5C42;&#x7684; OS &#x6216;&#x7CFB;&#x7EDF;&#x5E93;&#x4E0D;&#x517C;&#x5BB9;&#xFF09;&#x3002;&#x53D1;&#x5E03;&#x5305;&#x7684;&#x4F7F;&#x7528;&#x662F;&#x70ED;&#x66F4;&#x65B0;&#x6216;&#x964D;&#x7EA7;&#x7684;&#x5FC5;&#x5907;&#x6761;&#x4EF6;&#xFF0C;&#x800C;&#x8FD9;&#x6B63;&#x662F; Erlang VM &#x6700;&#x5F3A;&#x5927;&#x7684;&#x7279;&#x6027;&#x4E4B;&#x4E00;&#x3002;&#x2014;&#x2014; <a href="https://hexdocs.pm/distillery/introduction/understanding_releases.html" target="_blank">Distillery &#x6587;&#x6863;</a></p>
</blockquote>
<p>&#x4E00;&#x4E2A;&#x53D1;&#x5E03;&#x5305;&#x5305;&#x542B;&#x4EE5;&#x4E0B;&#x5185;&#x5BB9;&#xFF1A;</p>
<ul>
<li>/bin &#x6587;&#x4EF6;&#x5939;<ul>
<li>&#x8FD9;&#x5305;&#x542B;&#x4E86;&#x6574;&#x4E2A;&#x5E94;&#x7528;&#x542F;&#x52A8;&#x7684;&#x811A;&#x672C;&#x3002;</li>
</ul>
</li>
<li>/lib &#x6587;&#x4EF6;&#x5939;<ul>
<li>&#x8FD9;&#x5305;&#x542B;&#x4E86;&#x5E94;&#x7528;&#x7F16;&#x8BD1;&#x540E;&#x7684;&#x5B57;&#x8282;&#x7801;&#xFF0C;&#x53CA;&#x5176;&#x6240;&#x6709;&#x4F9D;&#x8D56;&#x3002;</li>
</ul>
</li>
<li>/releases &#x6587;&#x4EF6;&#x5939;<ul>
<li>&#x8FD9;&#x5305;&#x542B;&#x4E86;&#x53D1;&#x5E03;&#x5305;&#xFF0C;&#x53CA;&#x5176;&#x94A9;&#x5B50;&#x548C;&#x81EA;&#x5B9A;&#x4E49;&#x547D;&#x4EE4;&#x7684;&#x5143;&#x6570;&#x636E;&#x3002;</li>
</ul>
</li>
<li>/erts-VERSION<ul>
<li>&#x8FD9;&#x662F; Erlang &#x8FD0;&#x884C;&#x65F6;&#x73AF;&#x5883;&#x3002;&#x5B83;&#x53EF;&#x4EE5;&#x8BA9;&#x4F60;&#x7684;&#x673A;&#x5668;&#x5728;&#x6CA1;&#x6709;&#x5B89;&#x88C5; Erlang &#x6216; Elixir &#x7684;&#x60C5;&#x51B5;&#x4E0B;&#x8FD0;&#x884C;&#x4F60;&#x7684;&#x5E94;&#x7528;&#x3002;</li>
</ul>
</li>
</ul>
<h3 id="&#x5165;&#x95E8;&#x53CA;&#x5B89;&#x88C5;">&#x5165;&#x95E8;&#x53CA;&#x5B89;&#x88C5;</h3>
<p>&#x628A; Distillery &#x5F53;&#x4F5C;&#x4F9D;&#x8D56;&#xFF0C;&#x6DFB;&#x52A0;&#x5230;&#x4F60;&#x9879;&#x76EE;&#x91CC; &#x7684; <code>mix.exs</code> &#x6587;&#x4EF6;&#x91CC;&#x5934;&#x3002;<em>&#x6CE8;&#x610F;</em> &#x2014;&#x2014; &#x5982;&#x679C;&#x4F60;&#x7684;&#x662F; umbrella &#x5E94;&#x7528;&#xFF0C;&#x8BF7;&#x628A;&#x5B83;&#x6DFB;&#x52A0;&#x5230;&#x9879;&#x76EE;&#x6839;&#x76EE;&#x5F55;&#x7684; mix.exs &#x6587;&#x4EF6;&#x91CC;&#x3002;</p>
<pre><code>defp deps do
  [{:distillery, &quot;~&gt; 2.0&quot;}]
end
</code></pre><p>&#x7136;&#x540E;&#x5728;&#x547D;&#x4EE4;&#x884C;&#x8F93;&#x5165;&#xFF1A;</p>
<pre><code>mix deps.get
</code></pre><pre><code>mix compile
</code></pre><h3 id="&#x751F;&#x6210;&#x53D1;&#x5E03;&#x5305;">&#x751F;&#x6210;&#x53D1;&#x5E03;&#x5305;</h3>
<p>&#x5728;&#x547D;&#x4EE4;&#x884C;&#xFF0C;&#x8FD0;&#x884C;</p>
<pre><code>mix release.init
</code></pre><p>&#x547D;&#x4EE4;&#x5B8C;&#x6210;&#x540E;&#x4F1A;&#x4EA7;&#x751F;&#x4E00;&#x4E2A; <code>rel</code> &#x76EE;&#x5F55;&#xFF0C;&#x5E76;&#x5305;&#x542B;&#x4E00;&#x4E9B;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x5728;&#x91CC;&#x9762;&#x3002;</p>
<p>&#x7136;&#x540E;&#x8FD0;&#x884C; <code>mix release</code> &#x5C31;&#x53EF;&#x4EE5;&#x751F;&#x6210;&#x4E00;&#x4E2A;&#x53D1;&#x5E03;&#x5305;&#x3002;</p>
<p>&#x53D1;&#x5E03;&#x5305;&#x4E00;&#x751F;&#x6210;&#xFF0C;&#x547D;&#x4EE4;&#x884C;&#x5E94;&#x8BE5;&#x4F1A;&#x51FA;&#x73B0;&#x4EE5;&#x4E0B;&#x6307;&#x5F15;&#x3002;</p>
<pre><code>==&gt; Assembling release..
==&gt; Building release book_app:0.1.0 using environment dev
==&gt; You have set dev_mode to true, skipping archival phase
Release successfully built!
To start the release you have built, you can use one of the following tasks:

    # start a shell, like &apos;iex -S mix&apos;
    &gt; _build/dev/rel/book_app/bin/book_app console

    # start in the foreground, like &apos;mix run --no-halt&apos;
    &gt; _build/dev/rel/book_app/bin/book_app foreground

    # start in the background, must be stopped with the &apos;stop&apos; command
    &gt; _build/dev/rel/book_app/bin/book_app start

If you started a release elsewhere, and wish to connect to it:

    # connects a local shell to the running node
    &gt; _build/dev/rel/book_app/bin/book_app remote_console

    # connects directly to the running node&apos;s console
    &gt; _build/dev/rel/book_app/bin/book_app attach

For a complete listing of commands and their use:

    &gt; _build/dev/rel/book_app/bin/book_app help
</code></pre><p>&#x5728;&#x547D;&#x4EE4;&#x884C;&#x8F93;&#x5165;&#x547D;&#x4EE4; <code>_build/dev/rel/MYAPP/bin/MYAPP foreground</code> &#x5C31;&#x53EF;&#x4EE5;&#x542F;&#x52A8;&#x4F60;&#x7684;&#x5E94;&#x7528;&#x3002;&#x5F53;&#x7136;&#xFF0C;&#x4F60;&#x9700;&#x8981;&#x628A; MYAPP &#x66FF;&#x6362;&#x4E3A;&#x4F60;&#x7684;&#x9879;&#x76EE;&#x540D;&#x79F0;&#x3002;&#x8FD9;&#x6837;&#x6211;&#x4EEC;&#x5C31;&#x5DF2;&#x7ECF;&#x901A;&#x8FC7;&#x53D1;&#x5E03;&#x5305;&#x6765;&#x8FD0;&#x884C;&#x6211;&#x4EEC;&#x7684;&#x5E94;&#x7528;&#x4E86;&#xFF01;</p>
<h2 id="&#x5728;-phoenix-&#x9879;&#x76EE;&#x4E2D;&#x4F7F;&#x7528;-distillery">&#x5728; Phoenix &#x9879;&#x76EE;&#x4E2D;&#x4F7F;&#x7528; Distillery</h2>
<p>&#x5982;&#x679C;&#x4F60;&#x9700;&#x8981;&#x7ED3;&#x5408; Phoenix &#x6765;&#x4F7F;&#x7528; Distillery&#xFF0C;&#x6709;&#x4E00;&#x4E9B;&#x989D;&#x5916;&#x7684;&#x6B65;&#x9AA4;&#x9700;&#x8981;&#x6267;&#x884C;&#x3002;</p>
<p>&#x9996;&#x5148;&#xFF0C;&#x7F16;&#x8F91; <code>config/prod.exs</code> &#x6587;&#x4EF6;&#x3002;&#x628A;&#x4EE5;&#x4E0B;&#x5185;&#x5BB9;&#xFF1A;</p>
<pre><code>config :book_app, BookAppWeb.Endpoint,
  load_from_system_env: true,
  url: [host: &quot;example.com&quot;, port: 80],
  cache_static_manifest: &quot;priv/static/cache_manifest.json&quot;
</code></pre><p>&#x66F4;&#x6539;&#x4E3A;&#xFF1A;</p>
<pre><code>config :book_app, BookApp.Endpoint,
  http: [port: {:system, &quot;PORT&quot;}],
  url: [host: &quot;localhost&quot;, port: {:system, &quot;PORT&quot;}],
  cache_static_manifest: &quot;priv/static/cache_manifest.json&quot;,
  server: true,
  root: &quot;.&quot;,
  version: Application.spec(:book_app, :vsn)
</code></pre><p>&#x8FD9;&#x91CC;&#x505A;&#x7684;&#x4FEE;&#x6539;&#x662F;&#xFF1A;</p>
<ul>
<li><code>server</code> &#x2014;&#x2014; &#x5728;&#x7CFB;&#x7EDF;&#x542F;&#x52A8;&#x7684;&#x65F6;&#x5019;&#xFF0C;&#x8FD0;&#x884C; Cowboy &#x5E94;&#x7528;&#x7684; http &#x670D;&#x52A1;</li>
<li><code>root</code> &#x2014;&#x2014; &#x914D;&#x7F6E;&#x7CFB;&#x7EDF;&#x6839;&#x76EE;&#x5F55;&#xFF0C;&#x4E5F;&#x5C31;&#x662F;&#x653E;&#x7F6E;&#x5E76;&#x63D0;&#x4F9B;&#x9759;&#x6001;&#x6587;&#x4EF6;&#x7684;&#x8DEF;&#x5F84;&#x3002;</li>
<li><code>version</code> &#x2014;&#x2014; &#x5F53;&#x7CFB;&#x7EDF;&#x7248;&#x672C;&#x5347;&#x7EA7;&#x7684;&#x65F6;&#x5019;&#xFF0C;&#x7CFB;&#x7EDF;&#x7F13;&#x5B58;&#x5C31;&#x4F1A;&#x88AB;&#x6E05;&#x9664;&#x3002;</li>
<li><code>port</code> &#x2014;&#x2014; &#x6839;&#x636E; ENV &#x73AF;&#x5883;&#x53D8;&#x91CF;&#xFF0C;&#x5728;&#x7CFB;&#x7EDF;&#x542F;&#x52A8;&#x7684;&#x65F6;&#x5019;&#x8BBE;&#x7F6E;&#x7AEF;&#x53E3;&#xFF0C;&#x901A;&#x8FC7; <code>PORT=4001 _build/prod/rel/book_app/bin/book_app foreground</code></li>
</ul>
<p>&#x5982;&#x679C;&#x6267;&#x884C;&#x4E0A;&#x8FF0;&#x547D;&#x4EE4;&#x7684;&#x65F6;&#x5019;&#xFF0C;&#x7CFB;&#x7EDF;&#x7531;&#x4E8E;&#x627E;&#x4E0D;&#x5230;&#x6570;&#x636E;&#x5E93;&#x800C;&#x5D29;&#x6E83;&#x4E86;&#x3002;&#x6211;&#x4EEC;&#x53EF;&#x4EE5;&#x901A;&#x8FC7; Ecto <code>mix</code> &#x547D;&#x4EE4;&#x6765;&#x4FEE;&#x590D;&#x8FD9;&#x4E2A;&#x9519;&#x8BEF;&#x3002;&#x5728;&#x547D;&#x4EE4;&#x884C;&#xFF0C;&#x8F93;&#x5165;&#xFF1A;</p>
<pre><code>MIX_ENV=prod mix ecto.create
</code></pre><p>&#x8FD9;&#x4E2A;&#x547D;&#x4EE4;&#x53EF;&#x4EE5;&#x5E2E;&#x4F60;&#x521B;&#x5EFA;&#x6570;&#x636E;&#x5E93;&#x3002;&#x5C1D;&#x8BD5;&#x91CD;&#x65B0;&#x542F;&#x52A8;&#x7CFB;&#x7EDF;&#xFF0C;&#x8FD9;&#x65F6;&#x5019;&#x5E94;&#x8BE5;&#x6B63;&#x5E38;&#x4E86;&#x3002;&#x4F46;&#x662F;&#xFF0C;&#x4F60;&#x4F1A;&#x53D1;&#x73B0;&#x6570;&#x636E;&#x5E93;&#x7684;&#x5347;&#x7EA7;&#x811A;&#x672C;&#x8FD8;&#x6CA1;&#x6709;&#x8FD0;&#x884C;&#x3002;&#x901A;&#x5E38;&#xFF0C;&#x5728;&#x5F00;&#x53D1;&#x9636;&#x6BB5;&#xFF0C;&#x8FD9;&#x4E9B;&#x5347;&#x7EA7;&#x811A;&#x672C;&#x90FD;&#x662F;&#x624B;&#x52A8;&#x8C03;&#x7528; <code>mix.ecto migrate</code> &#x6765;&#x8FD0;&#x884C;&#x7684;&#x3002;&#x5230;&#x4E86;&#x53D1;&#x5E03;&#x9636;&#x6BB5;&#xFF0C;&#x6211;&#x4EEC;&#x5E0C;&#x671B;&#x5B83;&#x80FD;&#x81EA;&#x52A8;&#x6309;&#x7167;&#x914D;&#x7F6E;&#x8FD0;&#x884C;&#x3002;</p>
<h2 id="&#x5728;&#x751F;&#x4EA7;&#x73AF;&#x5883;&#x8FD0;&#x884C;&#x6570;&#x636E;&#x5E93;&#x5347;&#x7EA7;&#x811A;&#x672C;">&#x5728;&#x751F;&#x4EA7;&#x73AF;&#x5883;&#x8FD0;&#x884C;&#x6570;&#x636E;&#x5E93;&#x5347;&#x7EA7;&#x811A;&#x672C;</h2>
<p>Distillery &#x53EF;&#x4EE5;&#x8BA9;&#x6211;&#x4EEC;&#x5728;&#x53D1;&#x5E03;&#x751F;&#x547D;&#x5468;&#x671F;&#x7684;&#x4E0D;&#x540C;&#x65F6;&#x523B;&#x6267;&#x884C;&#x4EE3;&#x7801;&#x3002;&#x8FD9;&#x4E9B;&#x70B9;&#x88AB;&#x79F0;&#x4E4B;&#x4E3A; <a href="https://hexdocs.pm/distillery/1.5.2/boot-hooks.html" target="_blank">boot-hooks</a>&#x3002;Distillery &#x63D0;&#x4F9B;&#x7684;&#x94A9;&#x5B50;&#x5305;&#x62EC;&#xFF1A;</p>
<ul>
<li>pre_start</li>
<li>post_start</li>
<li>pre/post_configure</li>
<li>pre/post_stop</li>
<li>pre/post_upgrade</li>
</ul>
<p>&#x6839;&#x636E;&#x6211;&#x4EEC;&#x7684;&#x9700;&#x8981;&#xFF0C;<code>post_start</code> &#x662F;&#x5728;&#x751F;&#x4EA7;&#x73AF;&#x5883;&#x8FD0;&#x884C;&#x6570;&#x636E;&#x5E93;&#x5347;&#x7EA7;&#x811A;&#x672C;&#x7684;&#x70B9;&#x3002;&#x6211;&#x4EEC;&#x5148;&#x521B;&#x5EFA;&#x4E00;&#x4E2A;&#x53EB; <code>migrate</code> &#x7684;&#x53D1;&#x5E03;&#x4EFB;&#x52A1;&#x3002;&#x8FD9;&#x4E2A;&#x4EFB;&#x52A1;&#x662F;&#x4E00;&#x4E2A;&#x53EF;&#x4EE5;&#x5728;&#x547D;&#x4EE4;&#x884C;&#x8C03;&#x7528;&#x7684;&#x6A21;&#x5757;&#x51FD;&#x6570;&#x5165;&#x53E3;&#xFF0C;&#x5B83;&#x5305;&#x542B;&#x4E86;&#x548C;&#x7CFB;&#x7EDF;&#x5E94;&#x7528;&#x53BB;&#x5206;&#x5F00;&#x7684;&#x4EE3;&#x7801;&#x3002;&#x901A;&#x5E38;&#x6211;&#x4EEC;&#x4F1A;&#x628A;&#x90A3;&#x4E9B;&#x7CFB;&#x7EDF;&#x672C;&#x8EAB;&#x4E0D;&#x9700;&#x8981;&#x8FD0;&#x884C;&#x7684;&#x4EFB;&#x52A1;&#x90FD;&#x653E;&#x5728;&#x8FD9;&#x91CC;&#x3002;</p>
<pre><code>defmodule BookAppWeb.ReleaseTasks do
  def migrate do
    {:ok, _} = Application.ensure_all_started(:book_app)

    path = Application.app_dir(:book_app, &quot;priv/repo/migrations&quot;)

    Ecto.Migrator.run(BookApp.Repo, path, :up, all: true)
  end
end
</code></pre><p><em>&#x6CE8;&#x610F;</em> &#x901A;&#x5E38;&#xFF0C;&#x597D;&#x7684;&#x505A;&#x6CD5;&#x662F;&#x786E;&#x4FDD;&#x7CFB;&#x7EDF;&#x5404;&#x90E8;&#x5206;&#x90FD;&#x6B63;&#x5E38;&#x542F;&#x52A8;&#x540E;&#xFF0C;&#x518D;&#x8FD0;&#x884C;&#x8FD9;&#x4E9B;&#x5347;&#x7EA7;&#x811A;&#x672C;&#x3002;<a href="https://hexdocs.pm/ecto/2.2.8/Ecto.Migrator.html" target="_blank">Ecto.Migrator</a> &#x53EF;&#x4EE5;&#x5E2E;&#x52A9;&#x6211;&#x4EEC;&#x8FDE;&#x63A5;&#x6570;&#x636E;&#x5E93;&#xFF0C;&#x7136;&#x540E;&#x8FD0;&#x884C;&#x811A;&#x672C;&#x3002;</p>
<p>&#x63A5;&#x7740;&#xFF0C;&#x521B;&#x5EFA;&#x65B0;&#x7684;&#x6587;&#x4EF6; &#x2014;&#x2014; <code>rel/hooks/post_start/migrate.sh</code> &#x5E76;&#x52A0;&#x5165;&#x5982;&#x4E0B;&#x4EE3;&#x7801;&#xFF1A;</p>
<pre><code>echo &quot;Running migrations&quot;

bin/book_app rpc &quot;Elixir.BookApp.ReleaseTasks.migrate&quot;
</code></pre><p>&#x6211;&#x4EEC;&#x9700;&#x8981;&#x4F7F;&#x7528; Erlang &#x7684; <code>rpc</code> &#x6A21;&#x5757;&#xFF0C;&#x901A;&#x8FC7;&#x8FDC;&#x7A0B;&#x7A0B;&#x5E8F;&#x8C03;&#x7528;&#x670D;&#x52A1;&#xFF08;Remote Produce Call&#xFF09;&#x6765;&#x6B63;&#x786E;&#x6267;&#x884C;&#x4EE3;&#x7801;&#x3002;&#x7B80;&#x5355;&#x6765;&#x8BF4;&#xFF0C;&#x5B83;&#x80FD;&#x8BA9;&#x6211;&#x4EEC;&#x5728;&#x8FDC;&#x7A0B;&#x8282;&#x70B9;&#x6267;&#x884C;&#x51FD;&#x6570;&#x8C03;&#x7528;&#xFF0C;&#x83B7;&#x53D6;&#x56DE;&#x7ED3;&#x679C;&#x3002;&#x4E00;&#x822C;&#x6765;&#x8BF4;&#xFF0C;&#x6211;&#x4EEC;&#x7684;&#x7CFB;&#x7EDF;&#x5E94;&#x7528;&#x5728;&#x751F;&#x4EA7;&#x73AF;&#x5883;&#x90FD;&#x662F;&#x8FD0;&#x884C;&#x5728;&#x597D;&#x51E0;&#x4E2A;&#x4E0D;&#x540C;&#x7684;&#x8282;&#x70B9;&#x4E0A;&#x9762;&#x7684;&#x3002;</p>
<p>&#x6700;&#x540E;&#xFF0C;&#x5728; <code>rel/config.exs</code> &#x6587;&#x4EF6;&#xFF0C;&#x6211;&#x4EEC;&#x52A0;&#x5165;&#x5982;&#x4E0B;&#x94A9;&#x5B50;&#x5230; prod &#x7684;&#x914D;&#x7F6E;&#x91CC;&#x3002;</p>
<p>&#x628A;&#x4E00;&#x4E0B;&#x914D;&#x7F6E;&#xFF1A;</p>
<pre><code>environment :prod do
  set include_erts: true
  set include_src: false
  set cookie: :&quot;TkJuF,3nc4)OWPBpPxPDb6mz$&gt;)&gt;a&gt;/v/,l2}W*sUFaz&lt;)bG,v*3pPESE,`XOk{,&quot;
  set vm_args: &quot;rel/vm.args&quot;
end
</code></pre><p>&#x66FF;&#x6362;&#x4E3A;&#xFF1A;</p>
<pre><code>environment :prod do
  set include_erts: true
  set include_src: false
  set cookie: :&quot;TkJuF,3nc4)OWPBpPxPDb6mz$&gt;)&gt;a&gt;/v/,l2}W*sUFaz&lt;)bG,v*3pPESE,`XOk{,&quot;
  set vm_args: &quot;rel/vm.args&quot;
  set post_start_hooks: &quot;rel/hooks/post_start&quot;
end
</code></pre><p><em>&#x6CE8;&#x610F;</em> &#x2014;&#x2014; &#x8FD9;&#x4E2A;&#x94A9;&#x5B50;&#x53EA;&#x5728;&#x5E94;&#x7528;&#x7684; production &#x53D1;&#x5E03;&#x5305;&#x91CC;&#x3002;&#x5982;&#x679C;&#x6211;&#x4EEC;&#x4F7F;&#x7528;&#x9ED8;&#x8BA4;&#x7684; development &#x53D1;&#x5E03;&#x5305;&#xFF0C;&#x5B83;&#x5E76;&#x4E0D;&#x4F1A;&#x8FD0;&#x884C;&#x3002;</p>
<h2 id="&#x81EA;&#x5B9A;&#x4E49;&#x547D;&#x4EE4;">&#x81EA;&#x5B9A;&#x4E49;&#x547D;&#x4EE4;</h2>
<p>&#x5F53;&#x53D1;&#x5E03;&#x7684;&#x65F6;&#x5019;&#xFF0C;&#x4F60;&#x53EF;&#x80FD;&#x6CA1;&#x6709;&#x6743;&#x9650;&#x8FD0;&#x884C; <code>mix</code> &#x547D;&#x4EE4;&#x56E0;&#x4E3A;&#x5728;&#x8981;&#x90E8;&#x7F72;&#x7684;&#x673A;&#x5668;&#x4E0A;&#x5E76;&#x6CA1;&#x6709;&#x5B89;&#x88C5; <code>mix</code>&#x3002;&#x6211;&#x4EEC;&#x53EF;&#x4EE5;&#x901A;&#x8FC7;&#x521B;&#x5EFA;&#x81EA;&#x5B9A;&#x4E49;&#x547D;&#x4EE4;&#x6765;&#x89E3;&#x51B3;&#x8FD9;&#x4E2A;&#x95EE;&#x9898;&#x3002;</p>
<blockquote>
<p>&#x81EA;&#x5B9A;&#x4E49;&#x547D;&#x4EE4;&#x662F;&#x542F;&#x52A8;&#x811A;&#x672C;&#x7684;&#x6269;&#x5C55;&#x3002;&#x5B83;&#x548C; foreground &#x6216;&#x8005; remote_console &#x7684;&#x4F7F;&#x7528;&#x65B9;&#x6CD5;&#x662F;&#x4E00;&#x6837;&#x7684;&#xFF0C;&#x4E5F;&#x5C31;&#x662F;&#x8BF4;&#xFF0C;&#x5B83;&#x4EEC;&#x4F1A;&#x6210;&#x4E3A;&#x542F;&#x52A8;&#x811A;&#x672C;&#x7684;&#x4E00;&#x90E8;&#x5206;&#x3002;&#x5C31;&#x50CF;&#x94A9;&#x5B50;&#x4E00;&#x6837;&#xFF0C;&#x5B83;&#x4EEC;&#x80FD;&#x8BBF;&#x95EE;&#x542F;&#x52A8;&#x811A;&#x672C;&#x7684;&#x8F85;&#x52A9;&#x51FD;&#x6570;&#x548C;&#x73AF;&#x5883; &#x2014;&#x2014; <a href="https://hexdocs.pm/distillery/1.5.2/custom-commands.html" target="_blank">Distillery &#x6587;&#x6863;</a></p>
</blockquote>
<p>&#x547D;&#x4EE4;&#x548C;&#x53D1;&#x5E03;&#x4EFB;&#x52A1;&#x4E00;&#x6837;&#x662F;&#x51FD;&#x6570;&#xFF0C;&#x4F46;&#x4E0D;&#x540C;&#x7684;&#x5730;&#x65B9;&#x5728;&#x4E8E;&#x5B83;&#x4EEC;&#x662F;&#x901A;&#x8FC7;&#x547D;&#x4EE4;&#x884C;&#x6267;&#x884C;&#xFF0C;&#x800C;&#x4E0D;&#x662F;&#x901A;&#x8FC7;&#x53D1;&#x5E03;&#x811A;&#x672C;&#x6765;&#x8FD0;&#x884C;&#x3002;</p>
<p>&#x65E2;&#x7136;&#x6211;&#x4EEC;&#x80FD;&#x8FD0;&#x884C;&#x5347;&#x7EA7;&#x811A;&#x672C;&#x4E86;&#xFF0C;&#x6211;&#x4EEC;&#x6216;&#x8BB8;&#x8FD8;&#x9700;&#x8981;&#x901A;&#x8FC7;&#x547D;&#x4EE4;&#x6765;&#x4E3A;&#x6570;&#x636E;&#x5E93;&#x63D0;&#x4F9B;&#x57FA;&#x7840;&#x6570;&#x636E;&#x3002;&#x9996;&#x5148;&#xFF0C;&#x5728;&#x6211;&#x4EEC;&#x7684;&#x53D1;&#x5E03;&#x4EFB;&#x52A1;&#x6A21;&#x5757;&#x6DFB;&#x52A0;&#x4E00;&#x4E2A;&#x65B0;&#x7684;&#x51FD;&#x6570;&#x3002;&#x5728; <code>BookAppWeb.ReleaseTasks</code>&#xFF0C;&#x52A0;&#x5165;&#x4EE5;&#x4E0B;&#x4EE3;&#x7801;&#xFF1A;</p>
<pre><code>def seed do
  seed_path = Application.app_dir(:book_app_web, &quot;priv/repo/seeds.exs&quot;)
  Code.eval_file(seed_path)
end
</code></pre><p>&#x63A5;&#x7740;&#xFF0C;&#x521B;&#x5EFA;&#x6587;&#x4EF6; <code>rel/commands/seed.sh</code> &#x5E76;&#x52A0;&#x5165;&#x4EE3;&#x7801;&#xFF1A;</p>
<pre><code>#!/bin/sh

release_ctl eval &quot;BookAppWeb.ReleaseTasks.seed/0&quot;
</code></pre><p><em>&#x6CE8;&#x610F;</em> - <code>release_ctl()</code> &#x662F; Distillery &#x63D0;&#x4F9B;&#x7684;&#x811A;&#x672C;&#xFF0C;&#x53EF;&#x4EE5;&#x8BA9;&#x6211;&#x4EEC;&#x5728;&#x672C;&#x5730;&#x6216;&#x8005;&#x4E00;&#x4E2A;&#x5E72;&#x51C0;&#x7684;&#x8282;&#x70B9;&#x8FD0;&#x884C;&#x547D;&#x4EE4;&#x3002;&#x5982;&#x679C;&#x9700;&#x8981;&#x5728;&#x4E00;&#x4E2A;&#x8FD0;&#x884C;&#x4E2D;&#x7684;&#x8282;&#x70B9;&#x6267;&#x884C;&#x547D;&#x4EE4;&#xFF0C;&#x4F60;&#x9700;&#x8981;&#x4F7F;&#x7528; <code>release_remote_ctl()</code>&#x3002;</p>
<p>&#x9700;&#x8981;&#x4E86;&#x89E3;&#x66F4;&#x591A; Distillery &#x7684;&#x811A;&#x672C;&#xFF0C;&#x53EF;&#x4EE5;&#x53C2;&#x8003;<a href="https://hexdocs.pm/distillery/extensibility/shell_scripts.html" target="_blank">&#x8FD9;&#x91CC;</a></p>
<p>&#x6700;&#x540E;&#xFF0C;&#x5728; <code>rel/config.exs</code> &#x6587;&#x4EF6;&#x91CC;&#xFF0C;&#x52A0;&#x5165;&#xFF1A;</p>
<pre><code>release :book_app do
  ...
  set commands: [
    seed: &quot;rel/commands/seed.sh&quot;
  ]
end
</code></pre><p>&#x8C28;&#x8BB0;&#xFF0C;&#x9700;&#x8981;&#x8FD0;&#x884C; <code>MIX_ENV=prod mix release</code> &#x6765;&#x91CD;&#x65B0;&#x751F;&#x6210;&#x53D1;&#x5E03;&#x5305;&#x3002;&#x4E00;&#x65E6;&#x5B8C;&#x6210;&#xFF0C;&#x4F60;&#x5C31;&#x53EF;&#x4EE5;&#x5728;&#x547D;&#x4EE4;&#x884C;&#x8FD0;&#x884C; <code>PORT=4001 _build/prod/rel/book_app/bin/book_app seed</code>&#x3002;</p>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="bypass.html" class="navigation navigation-prev " aria-label="Previous page: Bypass">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="stream-data.html" class="navigation navigation-next " aria-label="Next page: StreamData">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"version":"2.0.1","title":"Distillery(基础)","level":"5.5","depth":1,"next":{"title":"StreamData","level":"5.6","depth":1,"path":"lessons/libraries/stream-data.md","ref":"lessons/libraries/stream-data.md","articles":[]},"previous":{"title":"Bypass","level":"5.4","depth":1,"path":"lessons/libraries/bypass.md","ref":"lessons/libraries/bypass.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"lessons/libraries/distillery.md","mtime":"2019-11-05T02:25:51.000Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2019-11-05T03:01:22.004Z"},"basePath":"../..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../../gitbook/gitbook.js"></script>
    <script src="../../gitbook/theme.js"></script>
    
        
        <script src="../../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

